#include "types/common.h"

#ifndef _errors_h_
#define _errors_h_

enum error_num
{
	hash_lookup_failed,
	
	recmgr_dup_attr,
	
	recinfo_load_failed,
	recinfo_duplicate_table,
	recinfo_invalid_table,
	recinfo_recsize_large,
	
	buffermgr_createtbl_failed,
	buffermgr_deletetbl_failed,
	buffermgr_read_failed,
	buffermgr_write_failed,
	buffermgr_not_initialized,
	buffermgr_unknown
	
};

struct Exception
{
	inline Exception(error_num err) : errno(err) 
	{
	}
	error_num errno;
};

#endif
